import * as types from './mutation-type'
export default{
  [types.ADD_SELLER] (state, seller) {
    state.seller = seller
  },
  [types.ADD_USER] (state, user) {
    state.user = user
    localStorage.setItem('user', user)
  },
  [types.ADD_SHOP_CARD] (state) {
    state.ShopCard.push(state.seller)
  }
}
